package main

import (
	"fmt"
	"os"
	"os/signal"
	"syscall"
)

func main() {
	fmt.Println("signing")
	sign := make(chan os.Signal)

	signal.Notify(sign,
		syscall.SIGINT,
		syscall.SIGUSR1,
		syscall.SIGUSR2,
		syscall.SIGTERM,
		syscall.SIGUSR1,
		syscall.SIGUSR2,
		syscall.SIGHUP)

	sig := <-sign
	fmt.Println("end signing")
	fmt.Println(sig)
}
